<h2><%=h article.title %></h2>

<%= article.body %>

<p class="tags"><%= article.tags.map {|t| link_to t.name, tag_url(t) }.join(" ") %></p>

<p class="coda">Posted at <%= article.created_at.to_formatted_s(:short) %>
<% if article.user %> by <%= article.user.login %><% end %>	
  | <%= link_to pluralize(article.comments_count, 'comment'), article_url(article) %>
  | <%= link_to "Permalink", article_url(article) %>
  <% if logged_in? -%>
  | <%= link_to "Edit", edit_article_url(article) %>
  | <%= link_to "Delete", article_url(article), :confirm => "Are you sure?", :method => :delete, :href => delete_article_url(article) %>
  <% end -%>
</p>
